<?php if (!defined('ABSPATH')) { exit; } ?>
<div class="wrap">
    <h2>PRO版本</h2>
    <?php if (function_exists('wp_spider_is_premium') && wp_spider_is_premium()): ?>
        <div class="notice notice-success"><p>已激活：高级功能可用</p></div>
    <?php else: ?>
        <div class="notice notice-warning"><p>未激活：请前往许可证页面或点击下方按钮激活</p></div>
    <?php endif; ?>
    <div class="pro-compare">
        <div class="column">
            <h3>免费版</h3>
            <ul>
                <li>蜘蛛今日概况</li>
                <li>趋势图 / Top10统计</li>
                <li>记录管理</li>
                <li>链接类型规则设置</li>
            </ul>
        </div>
        <div class="column">
            <h3>专业版</h3>
            <ul>
                <li>高级筛选、批量导出</li>
                <li>伪蜘蛛判断、智能拦截</li>
                <li>索引收录分析、热力图</li>
                <li>更多报表与API</li>
            </ul>
            <?php if (function_exists('wp_spider_is_premium') && wp_spider_is_premium()): ?>
                <p><span class="button" disabled>已激活</span></p>
            <?php else: ?>
                <p><a class="button button-primary" href="https://zibovip.top/spider-monitor-pricing" target="_blank" rel="noopener">立即激活</a></p>
            <?php endif; ?>
        </div>
    </div>
</div>

<style>
.pro-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.pro-compare .column{background:#fff;border:1px solid #ccd0d4;padding:16px}
.pro-compare ul{margin:0 0 10px 18px}
</style>

